package com.maben.mybatis.service.impl;

import com.maben.mybatis.mapper.CirRootMapper;
import com.maben.mybatis.service.MyService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 业务类
 */
@Service
public class MyServiceImpl implements MyService {
    @Resource
    private CirRootMapper cirRootMapper;

    @Override
    public void createTable(String tableName) throws Exception {
        if (StringUtils.isBlank(tableName)){
            return;
        }
        cirRootMapper.createTable(tableName);
    }
}
